home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / UTILITY1 / ATT302.ZIP / ALLTHETI.FRM < prev    next >
Text File  |  1993-11-06  |  20KB  |  697 lines

  1. VERSION 2.00
  2. Begin Form AllTheTime 
  3.    AutoRedraw      =   -1  'True
  4.    BackColor       =   &H00C0C0C0&
  5.    BorderStyle     =   0  'None
  6.    Caption         =   "AllTheTime"
  7.    ClientHeight    =   30
  8.    ClientLeft      =   60
  9.    ClientTop       =   330
  10.    ClientWidth     =   810
  11.    ClipControls    =   0   'False
  12.    ControlBox      =   0   'False
  13.    FillColor       =   &H00C0C0C0&
  14.    FillStyle       =   0  'Solid
  15.    FontBold        =   0   'False
  16.    FontItalic      =   0   'False
  17.    FontName        =   "MS Sans Serif"
  18.    FontSize        =   8.25
  19.    FontStrikethru  =   0   'False
  20.    FontUnderline   =   0   'False
  21.    Height          =   465
  22.    Icon            =   ALLTHETI.FRX:0000
  23.    Left            =   -15
  24.    LinkTopic       =   "Form2"
  25.    MaxButton       =   0   'False
  26.    MinButton       =   0   'False
  27.    ScaleHeight     =   30
  28.    ScaleWidth      =   810
  29.    Top             =   -30
  30.    Visible         =   0   'False
  31.    Width           =   960
  32.    Begin TextBox Text1 
  33.       Height          =   288
  34.       Left            =   2016
  35.       LinkTimeout     =   -1
  36.       TabIndex        =   5
  37.       Top             =   624
  38.       Visible         =   0   'False
  39.       Width           =   372
  40.    End
  41.    Begin PictureClip MoonSun 
  42.       Cols            =   5
  43.       Location        =   "1200,2400,2250,5430"
  44.       Picture         =   ALLTHETI.FRX:0302
  45.       Rows            =   10
  46.    End
  47.    Begin SSFrame Frame3D1 
  48.       ForeColor       =   &H00000000&
  49.       Height          =   195
  50.       Left            =   15
  51.       TabIndex        =   4
  52.       Top             =   8160
  53.       Width           =   135
  54.       Begin SSOption Option3D1 
  55.          Alignment       =   1  'Right Justify
  56.          Caption         =   "&3 - Bottom right"
  57.          ForeColor       =   &H00000000&
  58.          Height          =   255
  59.          Index           =   2
  60.          Left            =   1920
  61.          TabIndex        =   2
  62.          Top             =   960
  63.          Value           =   -1  'True
  64.          Width           =   1575
  65.       End
  66.       Begin SSOption Option3D1 
  67.          Caption         =   "&5 - Elsewhere"
  68.          ForeColor       =   &H00000000&
  69.          Height          =   255
  70.          Index           =   4
  71.          Left            =   1530
  72.          TabIndex        =   6
  73.          TabStop         =   0   'False
  74.          Top             =   615
  75.          Width           =   1575
  76.       End
  77.       Begin SSOption Option3D1 
  78.          Caption         =   "&1 - Upper left"
  79.          ForeColor       =   &H00000000&
  80.          Height          =   255
  81.          Index           =   0
  82.          Left            =   105
  83.          TabIndex        =   0
  84.          TabStop         =   0   'False
  85.          Top             =   255
  86.          Width           =   1455
  87.       End
  88.       Begin SSOption Option3D1 
  89.          Alignment       =   1  'Right Justify
  90.          Caption         =   "&2 - Upper right"
  91.          ForeColor       =   &H00000000&
  92.          Height          =   255
  93.          Index           =   1
  94.          Left            =   1920
  95.          TabIndex        =   1
  96.          TabStop         =   0   'False
  97.          Top             =   270
  98.          Width           =   1575
  99.       End
  100.       Begin SSOption Option3D1 
  101.          Caption         =   "&4 - Bottom left"
  102.          ForeColor       =   &H00000000&
  103.          Height          =   255
  104.          Index           =   3
  105.          Left            =   120
  106.          TabIndex        =   3
  107.          TabStop         =   0   'False
  108.          Top             =   960
  109.          Width           =   1575
  110.       End
  111.    End
  112.    Begin Image Delta 
  113.       Height          =   195
  114.       Left            =   795
  115.       Top             =   30
  116.       Width           =   195
  117.    End
  118.    Begin Image StopWatch 
  119.       Height          =   195
  120.       Left            =   570
  121.       Top             =   30
  122.       Width           =   195
  123.    End
  124.    Begin Image PrtStatus 
  125.       Height          =   240
  126.       Left            =   510
  127.       Top             =   10005
  128.       Width           =   300
  129.    End
  130.    Begin Image PrtInactive 
  131.       Height          =   240
  132.       Left            =   510
  133.       Top             =   10080
  134.       Width           =   285
  135.    End
  136.    Begin Image PrtActive 
  137.       Height          =   240
  138.       Left            =   510
  139.       Top             =   10080
  140.       Width           =   300
  141.    End
  142.    Begin Image Picture1 
  143.       Height          =   225
  144.       Left            =   30
  145.       Top             =   30
  146.       Width           =   240
  147.    End
  148.    Begin Image MoonPic 
  149.       Height          =   192
  150.       Left            =   300
  151.       Top             =   30
  152.       Width           =   192
  153.    End
  154.    Begin Image SeasonPic 
  155.       Height          =   192
  156.       Left            =   4080
  157.       Top             =   30
  158.       Width           =   192
  159.    End
  160. End
  161. 'DefInt A-Z
  162. Const GroupFauxCompilerDirective = False
  163.  
  164. Sub Delta_Click ()
  165. SoundABorted = True
  166. End Sub
  167.  
  168. Sub Delta_DblClick ()
  169. SoundABorted = True
  170. 'DblCFlag% = True
  171.  
  172. End Sub
  173.  
  174. Sub Delta_MouseDown (Button As Integer, Shift As Integer, X As Single, Y As Single)
  175. 'Delta.Picture = MoonSun.GraphicCell(46)
  176. Call Form_MouseDown(Button, Shift, X, Y)
  177. If Button = 1 Then 'Left button
  178.    If gDeltaRunning = 2 Then
  179.       'start timer
  180.       gResUser = GetFreeSystemResources(2) - (gStoppedResUser - gResUser)
  181.       gResGDI = GetFreeSystemResources(1) - (gStoppedResGDI - gResGDI)
  182.       gRes = GetFreeSystemResources(0) - (gStoppedRes - gRes)
  183.       gTotMem = GetTotalMem() - (gStoppedTotMem - gTotMem)
  184.       gBlkMem = GetBlockMem() - (gStoppedBlkMem - gBlkMem)
  185.       Delta.Picture = MoonSun.GraphicCell(47)
  186.       LastTime& = 0
  187.       'FontChangedNotYetSized = True
  188.       gDeltaRunning = 1
  189.    Else
  190.       'stop timer
  191.       gStoppedResUser = GetFreeSystemResources(2)
  192.       gStoppedResGDI = GetFreeSystemResources(1)
  193.       gStoppedRes = GetFreeSystemResources(0)
  194.       gStoppedTotMem = GetTotalMem()
  195.       gStoppedBlkMem = GetBlockMem()
  196.       LastTime& = 0
  197.       Delta.Picture = MoonSun.GraphicCell(48)
  198.       gDeltaRunning = 2
  199.    End If
  200. End If
  201. If Button = 2 Then
  202.       gResUser = GetFreeSystemResources(2)
  203.       gResGDI = GetFreeSystemResources(1)
  204.       gRes = GetFreeSystemResources(0)
  205.       gTotMem = GetTotalMem()
  206.       gBlkMem = GetBlockMem()
  207.       gStoppedResUser = GetFreeSystemResources(2)
  208.       gStoppedResGDI = GetFreeSystemResources(1)
  209.       gStoppedRes = GetFreeSystemResources(0)
  210.       gStoppedTotMem = GetTotalMem()
  211.       gStoppedBlkMem = GetBlockMem()
  212.       LastTime& = 0
  213. End If
  214.  
  215.  
  216. Exit Sub
  217.  
  218. If (gDeltaRunning = 0) Or (gDeltaRunning = 2 And Button = 2) Then
  219.    If (gDeltaRunning = 0) Then
  220.       gResUser = GetFreeSystemResources(2)
  221.       gResGDI = GetFreeSystemResources(1)
  222.       gRes = GetFreeSystemResources(0)
  223.       gTotMem = GetTotalMem()
  224.       gBlkMem = GetBlockMem()
  225.    Else
  226.       gResUser = GetFreeSystemResources(2) - (gStoppedResUser - gResUser)
  227.       gResGDI = GetFreeSystemResources(1) - (gStoppedResGDI - gResGDI)
  228.       gRes = GetFreeSystemResources(0) - (gStoppedRes - gRes)
  229.       gTotMem = GetTotalMem() - (gStoppedTotMem - gTotMem)
  230.       gBlkMem = GetBlockMem() - (gStoppedBlkMem - gBlkMem)
  231.    End If
  232.    gDeltaRunning = 1
  233.    Delta.Picture = MoonSun.GraphicCell(47)
  234.    LastTime& = 0
  235. Else
  236.    If gDeltaRunning = 1 Then
  237.       gDeltaRunning = 2
  238.       gStoppedResUser = GetFreeSystemResources(2)
  239.       gStoppedResGDI = GetFreeSystemResources(1)
  240.       gStoppedRes = GetFreeSystemResources(0)
  241.       gStoppedTotMem = GetTotalMem()
  242.       gStoppedBlkMem = GetBlockMem()
  243.       LastTime& = 0
  244.       Delta.Picture = MoonSun.GraphicCell(48)
  245.    Else
  246.       Delta.Picture = MoonSun.GraphicCell(45)
  247.       gDeltaRunning = 0
  248.       gResUser = 0
  249.       gResGDI = 0
  250.       gRes = 0
  251.       gTotMem = 0
  252.       gBlkMem = 0
  253.       LastTime& = 0
  254.    End If
  255. End If
  256.  
  257.  
  258. End Sub
  259.  
  260. Sub Delta_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  261. Call Form_MouseMove(Button, Shift, X, Y)
  262. End Sub
  263.  
  264. Sub Delta_MouseUp (Button As Integer, Shift As Integer, X As Single, Y As Single)
  265. Call Form_Mouse